package de.rs.espresso;

import java.util.concurrent.Callable;

import de.rs.espresso.interfaces.IProblem;
import de.rs.espresso.interfaces.IResult;

public class SolverThread implements Callable<IResult> {

	private IProblem problem;

	public SolverThread(IProblem problem) {
		this.problem = problem;
	}

	@Override
	public IResult call() throws Exception {
		problem.solve();
		return problem.getResult();
	}

}
